package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品详情
 *
 * @author : 洪俊新
 * @date : 2021/7/19 11:47
 * @description:
 */
public class CommodityDetailRes {

    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    private Integer commodityId;
    /**
     * 商品上架时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime shelfTime;
    /**
     * 店铺名称
     * isnull 0
     */            private String merchantsName;
    /**
     * 商品名
     * isnull 0
     */            private String commodityName;
    /**
     * 商品介绍
     * isnull 0
     */            private String commodityInfo;
    /**
     * 一级分类名字
     * isnull 0
     */            private String commodityOneTypeName;
    /**
     * 二级分类名字
     * isnull 0
     */            private String commodityTwoTypeName;
    /**
     * 商品主图路径
     * isnull 0
     */            private String commodityMainPic;
    /**
     * 商品轮播图
     * isnull 0
     */            private String commodityBannerPics;
    /**
     * 发货地
     * isnull 0
     */            private String shippingAddress;
    /**
     * 物流运费
     * isnull 0
     */            private BigDecimal freightPrice;

     /**
     * 商品规格
     */
    private List<Sku> list;

    /**
     * 商品详情图文
     * isnull 0
     */            private String commodityDetails;
    /**
     * 销量
     * isnull 0
     */            private Integer salesVolume;
    /**
     * 商品状态0为未发布上架状态,1为发布上架状态，2一次审核中，3一次审核拒绝,4商品下架，5二次审核中，6二次审核拒绝
     * isnull 0
     */            private String commodityStage;
    /**
     * 1级分销比例
     * isnull 0
     */            private BigDecimal commodityFirstRank;
    /**
     * 2级分销比例
     * isnull 0
     */            private BigDecimal commoditySecondRank;

    public Integer getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Integer commodityId) {
        this.commodityId = commodityId;
    }

    public LocalDateTime getShelfTime() {
        return shelfTime;
    }

    public void setShelfTime(LocalDateTime shelfTime) {
        this.shelfTime = shelfTime;
    }

    public String getMerchantsName() {
        return merchantsName;
    }

    public void setMerchantsName(String merchantsName) {
        this.merchantsName = merchantsName;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getCommodityInfo() {
        return commodityInfo;
    }

    public void setCommodityInfo(String commodityInfo) {
        this.commodityInfo = commodityInfo;
    }

    public String getCommodityOneTypeName() {
        return commodityOneTypeName;
    }

    public void setCommodityOneTypeName(String commodityOneTypeName) {
        this.commodityOneTypeName = commodityOneTypeName;
    }

    public String getCommodityTwoTypeName() {
        return commodityTwoTypeName;
    }

    public void setCommodityTwoTypeName(String commodityTwoTypeName) {
        this.commodityTwoTypeName = commodityTwoTypeName;
    }

    public String getCommodityMainPic() {
        return commodityMainPic;
    }

    public void setCommodityMainPic(String commodityMainPic) {
        this.commodityMainPic = commodityMainPic;
    }

    public String getCommodityBannerPics() {
        return commodityBannerPics;
    }

    public void setCommodityBannerPics(String commodityBannerPics) {
        this.commodityBannerPics = commodityBannerPics;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public BigDecimal getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(BigDecimal freightPrice) {
        this.freightPrice = freightPrice;
    }

    public List<Sku> getList() {
        return list;
    }

    public void setList(List<Sku> list) {
        this.list = list;
    }

    public String getCommodityDetails() {
        return commodityDetails;
    }

    public void setCommodityDetails(String commodityDetails) {
        this.commodityDetails = commodityDetails;
    }

    public Integer getSalesVolume() {
        return salesVolume;
    }

    public void setSalesVolume(Integer salesVolume) {
        this.salesVolume = salesVolume;
    }

    public String getCommodityStage() {
        return commodityStage;
    }

    public void setCommodityStage(String commodityStage) {
        this.commodityStage = commodityStage;
    }

    public BigDecimal getCommodityFirstRank() {
        return commodityFirstRank;
    }

    public void setCommodityFirstRank(BigDecimal commodityFirstRank) {
        this.commodityFirstRank = commodityFirstRank;
    }

    public BigDecimal getCommoditySecondRank() {
        return commoditySecondRank;
    }

    public void setCommoditySecondRank(BigDecimal commoditySecondRank) {
        this.commoditySecondRank = commoditySecondRank;
    }

    @Override
    public String toString() {
        return "CommodityDetailRes{" +
                "commodityId=" + commodityId +
                ", shelfTime=" + shelfTime +
                ", merchantsName='" + merchantsName + '\'' +
                ", commodityName='" + commodityName + '\'' +
                ", commodityInfo='" + commodityInfo + '\'' +
                ", commodityOneTypeName='" + commodityOneTypeName + '\'' +
                ", commodityTwoTypeName='" + commodityTwoTypeName + '\'' +
                ", commodityMainPic='" + commodityMainPic + '\'' +
                ", commodityBannerPics='" + commodityBannerPics + '\'' +
                ", shippingAddress='" + shippingAddress + '\'' +
                ", freightPrice=" + freightPrice +
                ", list=" + list +
                ", commodityDetails='" + commodityDetails + '\'' +
                ", salesVolume=" + salesVolume +
                ", commodityStage='" + commodityStage + '\'' +
                ", commodityFirstRank=" + commodityFirstRank +
                ", commoditySecondRank=" + commoditySecondRank +
                '}';
    }
}
